@extends('Admin.layout.layout')
@section('title')
<title>LAMP178官网 - 后台攻略添加</title>
@endsection
@section('con')
<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">攻略修改</h1>
    </div>
    <!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-default">
            <div class="panel-heading">
                最新攻略
            </div>
            <div class="panel-body">   
                <div class="row">
                        
                    @if (count($errors) > 0)
                        <div class="alert alert-danger">
                            <ul>
                                @foreach ($errors->all() as $error)
                                    <li>{{ $error }}</li>
                                @endforeach
                            </ul>
                        </div>                           
 
                    @endif 
                   
                    
                    <div class="col-lg-6 col-lg-offset-3">
                        <form role="form" action="{{url('/admin/glue/update')}}" method="post" enctype="multipart/form-data">
                            
                            <div class="form-group">
                                <label>攻略标题</label>
                                <input class="form-control" name="title" value="{{$users->title}}">
                            </div>
                            <div class="form-group">
                                     <label >攻略内容</label>            
                                <input class="form-control"  type="content" name="content" value="{{$users->content}}" style="height: 70px;" >
                            </div>
                           
                           <div class="form-group">
                                <label>攻略头像</label>
                                <input type="file" name="photo">
                                <img src="{{$users->photo}}" width="100px">
                            </div>
                            {{csrf_field()}} 
                            <input type="hidden" value="{{$users->id}}" name="id">
                            <button class="btn btn-primary" type="submit">提交</button>

                            <button class="btn btn-danger" type="reset">重置</button>
                        </form>
                    </div>
                  
                </div>
                <!-- /.row (nested) -->
            </div>
            <!-- /.panel-body -->
        </div>
        <!-- /.panel -->
    </div>
    <!-- /.col-lg-12 -->
</div>

@endsection